package day18;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormatDemo {

	private static String name = "3224";
	public static void main(String[] args) {
		Date date = new Date();
		date.setTime(System.currentTimeMillis());
		DateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:ss:mm");
		String time = format.format(date);
		System.out.println("time= "+time);
		System.out.println(name);
	}
}











